
export default () => ({
  methods: {
    async $httpGet(url, params = {}) {
      this.$httpService.get(url, {
        params,
        headers: {
          'Authorization': token
        }
      })
    },
    async $httpPost(url, data = {}) {
      this.$httpService.post(url, data)
    },
    async $httpPut(url, data = {}) {
      this.$httpService.put(url, data)
    },
    async $httpDelete(url, params = {}) {
      this.$httpService.delete(url, {
        params,
       
      })
    },
    async $httpDelete(url, params = {}) {
      this.$httpService.delete(url, {
        params,
        headers: {
          'Authorization': token
        }
      })
    }
  }
})